import { MockMethod } from 'vite-plugin-mock'
import { loginData } from './data'

const mockList: MockMethod[] = [
    {
        url: '/mock/login',
        method: 'post', // 请求方式
        statusCode: 200, // 返回的http状态码
        response: opt => {
            console.log(opt)

            return {
                statusCode: 200,
                desc: '获取成功',
                result: loginData,
            }
        },
    }
]
export default mockList